package top.happylaishop.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_category")
public class Category {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer parentId;

    @TableField("`name`")
    private String name;

    @TableField("`status`")
    private Integer status;

    private Integer sortOrder;

    private Date createTime;

    private Integer createUserId;

    private Date updateTime;

    private Integer updateUserId;

}